package cn.gok.oop.exam;

public class Child extends Parent {
    int z;
    public Child(int x, int y) {
        super(x, y);
    }

    public Child(int x, int y, int z) {
        super(x, y);
        this.z = z;
    }
    public int getSum(){
       return this.getX()+this.getY()+z;
    }
}
